var Menu=	{
Load:function()
	{
	this.SetQuery();
	if(!this.IsPoll)
		{
		fastCSharp.Poll.OnMessage.Add(fastCSharp.ThisFunction(this,this.OnPoll));
		this.IsPoll=1;
		}
	},
SetQuery:function()
	{
	var User=fastCSharp.PageView.SkinValue.SkinValue.currentUser;
	if(User){
		var Query=fastCSharp.Poll.Query;
		Query.IsMenu=1;
		Query.Favorite=User.FavoriteNewCount||0;
		}
	},
OnPoll:function(Value)
	{
	var User=fastCSharp.PageView.SkinValue.currentUser,Query=fastCSharp.Poll.Query;
	if(Value.Favorite&&Value.Favorite!=User.SkinValue.FavoriteNewCount)	User.FavoriteNewCount.Set(Query.Favorite=Value.Favorite);
	}
		};
fastCSharp.OnLoad(Menu.Load,Menu,1);